package com.xbongbong.pro.workorder.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author ly1666
 * @date 2019/3/18 下午5:16
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class WorkOrderPersonListPojo {
    /**
     * 员工id
     */
    @NotNull(message = "模版id不为空")
    Long id;
    /**
     * 地址
     */
    @NotNull(message = "地址不为空")
    String address;
    /**
     * 姓名
     */
    @NotNull(message = "name不为空")
    String name;
    /**
     * 服务模版list
     */
    @NotNull(message = "service不为空")
    List<WorkOrderPersonListServicePojo> service;
    /**
     * 员工头像
     */
    String avatar;

    public WorkOrderPersonListPojo () {
        this.address = "";
        this.name = "";
    }
}
